Release 10.1A: OpenEdge Development:
Web Services


Specifying SOAP header callback procedures at run time

For an AppServer, all information about remote requests is either passed with parameters or obtained using the attributes and methods of various handles related to the request. For a Web service, most information about Web service requests is passed with parameters, but some information is also contained within other elements of the SOAP message. The SET-CALLBACK-PROCEDURE( ) method allows you to specify internal procedures that can access the content of the SOAP header element in a SOAP message as part of the invocation of a Web service operation that generates the message.

The SET-CALLBACK-PROCEDURE( ) method registers an internal procedure with a specified Progress callback, a designation that causes the internal procedure (callback procedure) to execute in response to some Progress core action, such as in this case, sending and receiving SOAP messages. For Web services, this method supports two types of Progress callbacks:

A single Web service procedure object can support only one request header callback and one response header callback at one time. This means that for a single procedure object, you must use the same callbacks for all operations invoked on that procedure object. However, if you want greater flexibility to use different callbacks for the same set of operations, you can use the RUN portTypeName statement to create an additional Web service procedure object for the same port type. You can then invoke the SET-CALLBACK-PROCEDURE( ) method on the new procedure object to assign a different set of callback procedures for use by that same port type. By creating additional Web service procedure objects this way, you can then assign as many callback procedures for a single port type as you want.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095